package com.ruoyi.develop.goodsSalebuy.service;

import java.util.List;

import com.ruoyi.develop.goodsSalebuy.domain.GoodsSalebuy;
import com.ruoyi.develop.goodsSaledo.domain.GoodsSaledo;
import com.ruoyi.develop.lvRukumingxi.domain.LvRukumingxi;

/**
 * 采购单Service接口
 * @author qh
 * @date 2024-08-09
 */
public interface IGoodsSalebuyService {
    /**
     * 查询采购单
     * @param id 采购单主键
     * @return 采购单
     */
    public GoodsSalebuy selectById(String id);

    /**
     * 查询采购单列表
     * @param entity 采购单
     * @return 采购单集合
     */
    public List<GoodsSalebuy> selectList(GoodsSalebuy entity);

    public List<GoodsSalebuy> listByQinggou(GoodsSalebuy entity);

    public List<GoodsSalebuy> listByCgallid(GoodsSalebuy entity);
    /**
     * 新增采购单
     * @param entity 采购单
     * @return 结果
     */
    public int insert(GoodsSalebuy entity);

    /**
     * 修改采购单
     * @param entity 采购单
     * @return 结果
     */
    public int update(GoodsSalebuy entity);

    /**
     * 批量删除采购单
     * @param ids 需要删除的采购单主键集合
     * @return 结果
     */
    public int deleteByIds(String[] ids);

    /**
     * 删除采购单信息
     * @param id 采购单主键
     * @return 结果
     */
    public int deleteById(String id);

    public void insertBatch(GoodsSaledo entity);

    public List<GoodsSalebuy> selectByCgallId(String cgallid);

    public int updateGoodsSalebuyBuruku(String mainId,String daohuoStatus);

    void insertBuyBatch(GoodsSaledo entity);

    void insertForReturn(LvRukumingxi rukumingxi);
}
